<!-- 发起拼车 -->
<template>
	<view>
		<view class="box">
			<view class="son name">
				<text>发布人</text>
				<input type="text" class="input" placeholder="请输入发布人姓名">
			</view>
			<view class="son phone">
				<text>联系方式</text>
				<input type="number" class="input" placeholder="请输入联系方式">
			</view>
			<view class="son time">
				<text>出发日期</text>
				<picker mode="date" @change="bindDateChange" class="picker">
					<view>{{date}}</view>
				</picker>
			</view>
			<view class="son time">
				<text>出发时间</text>
				<picker mode="time" @change="bindTimeChange" class="picker">
					<view>{{time}}</view>
				</picker>
			</view>
			<view class="son startAddress">
				<text>接送地点</text>
			</view>
			<view class="son endAddress">
				<text>目的地</text>

			</view>
			<view class="son price">
				<text>价格</text>
				<input type="number" class="input">
			</view>
		</view>

		<button>发布</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				time: '请选择出发时间',
				date: '请选择日期',
				msg: {
					name: '',
					phone: '',
					time: '',

					startAddress: '',
					endAddress: '',
					price: '',

				},


			}
		},
		methods: {
			bindTimeChange(e) {
				this.time = e.detail.value
			},
			bindDateChange(e) {
				this.date = e.detail.value
			},
		},
		onLoad() {
			this.datetimesingle = Date.now() - 2 * 24 * 3600 * 1000
		}
	}
</script>

<style>
	page {
		background-color: #f2f3f5;
	}

	.box {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-around;
		width: 750rpx;
		height: 750rpx;
		padding: 20rpx 0;
		background-color: #fff;
	}

	.box .son {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 690rpx;
		height: 90rpx;
		box-sizing: border-box;
		background: #f2f2f2;
		border-radius: 8rpx;
	}

	.box .son text {
		height: 90rpx;
		width: 172rpx;
		box-sizing: border-box;
		padding-left: 30rpx;
		font-size: 28rpx;
		font-family: Source Han Sans CN, Source Han Sans CN-Regular;
		font-weight: 400;
		text-align: left;
		color: #666666;
		line-height: 90rpx;
	}

	.input {
		box-sizing: border-box;
		padding-right: 30rpx;
		height: 28rpx;
		width: 518rpx;
	}

	.picker {
		font-size: 28rpx;
		font-family: Source Han Sans CN, Source Han Sans CN-Regular;
		font-weight: 400;
		text-align: left;
		color: #999999;
		width: 528rpx;
		height: 90rpx;
		line-height: 90rpx;
	}

	button {
		margin-top: 100rpx;
		width: 580rpx;
		height: 90rpx;
		background: linear-gradient(134deg, #54d685, #29c563 99%);
		border-radius: 45rpx;
		font-size: 32rpx;
		font-family: Source Han Sans CN, Source Han Sans CN-Regular;
		font-weight: 400;
		text-align: center;
		color: #ffffff;
		line-height: 90rpx;
	}
</style>
